package pers.patterns.yang.decorate;

public class Trousers extends Clothes{
    public Trousers(Person person) {
        super(person);
    }

    @Override
    public Double cost() {
        return this.person.cost() + 600;
    }

    @Override
    public void show() {
        this.person.show();
        System.out.println("买了一条裤子，累计花了" +  this.cost());
    }
}
